from django.db import models

# Create your models here.
class UserModel(models.Model):
    img=models.CharField(max_length=100,)
    username = models.CharField(max_length=10, unique=True,null=True,blank=True)
    phone = models.CharField(max_length=20, unique=True,null=True,blank=True)
    email = models.CharField(max_length=100,unique=True,null=True,blank=True)
    password = models.CharField(max_length=30)
    qianming=models.CharField(max_length=100,null=True,blank=True)
    guanli=models.IntegerField(choices=((0,'普通用户'),(1,'管理员')),default=0)
    class Meta:
        db_table = 'users'